package smoketest.tomcat.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *	配置读取DEBUG
 * </p>
 *
 * @author KAIMAO.LONG
 * @since 2022-06-13
 */
@Component
@ConfigurationProperties(prefix = "jdbc")
public class JDBCProperties {
	private String url;
	private String username;
	private String password;
	private String driverClassName;
	private String tablePrefix;
	private Master master;
	private Slave slave;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDriverClassName() {
		return driverClassName;
	}

	public void setDriverClassName(String driverClassName) {
		this.driverClassName = driverClassName;
	}

	public String getTablePrefix() {
		return tablePrefix;
	}

	public void setTablePrefix(String tablePrefix) {
		this.tablePrefix = tablePrefix;
	}

	public Master getMaster() {
		return master;
	}

	public void setMaster(Master master) {
		this.master = master;
	}

	public Slave getSlave() {
		return slave;
	}

	public void setSlave(Slave slave) {
		this.slave = slave;
	}

	@Override
	public String toString() {
		return "JDBCProperties{" +
				"url='" + url + '\'' +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", driverClassName='" + driverClassName + '\'' +
				", tablePrefix='" + tablePrefix + '\'' +
				", master=" + master +
				", slave=" + slave +
				'}';
	}
}
